/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const auditRouter = {
  path: '/audit',
  component: Layout,
  redirect: '/audit/terminal',
  name: 'audit',
  meta: {
    title: '加速审计',
    icon: 'guide',
    // permission: '000010',
    requiresAuth: true,
    roles: ['root', 'admin', 'guest' ]
  },
  children: [
    {
      path: 'terminal',
      name: 'terminal',
      component: () => import('@/views/audit/terminal'),
      meta: { title: '特殊准入', icon: 'dian' },
      hidden: true
    },
    {
      path: 'domainNameBlock',
      name: 'domainNameBlock',
      component: () => import('@/views/audit/domainNameBlock'),
      meta: { title: '域名阻断', icon: 'dian' }
    },
    {
      path: 'domainNameAccelerate',
      name: 'domainNameAccelerate',
      component: () => import('@/views/audit/domainNameAccelerate'),
      meta: { title: '域名加速', icon: 'dian' }
    },
    {
      path: 'accelerationNode',
      name: 'accelerationNode',
      component: () => import('@/views/audit/accelerationNode'),
      meta: { title: '加速节点', icon: 'dian' }
    },
    {
      path: 'auditFreeDomain',
      name: 'auditFreeDomain',
      component: () => import('@/views/audit/auditFreeDomain'),
      meta: { title: '免审计域名', icon: 'dian' }
    }
  ]
}

export default auditRouter
